package com.tjx.service;

import com.tjx.entity.Coupon;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 优惠券表 服务类
 * </p>
 *
 * @author tjx
 * @since 2025-10-29
 */
public interface ICouponService extends IService<Coupon> {

    /**
     * 查询优惠券详情
     */
    Coupon couponQueryDetail(Coupon coupon);

    /**
     * 扣减库存
     */
    boolean couponDeductStock(String couponId, String userId);

    /**
     * 优惠卷预热新增优惠券
     */
    void couponPreheatAdd(Coupon coupon);


}
